﻿<%@ Page Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="DoPayment.aspx.cs"
    Inherits="DoPayment" Title="Untitled Page" %>

<asp:Content ID="leftcolumn" ContentPlaceHolderID="pnlLeftColumn" runat="server">
</asp:Content>
<asp:Content ID="main" ContentPlaceHolderID="pnlMain" runat="server">

    <script type="text/javascript" language="javascript">
function onPayNowClick()
{
if(Page_ClientValidate())
if( confirm("Are you sure?"))
{
    $.blockUI();
}
}
    </script>

    <table width="100%">
        <col width="450px" />
        <col width="200px" />
        <tr>
            <td style="vertical-align: top; border: solid 2px #3e7a21; padding-left: 10px;">
                <table cellpadding="0" width="100%" cellspacing="0">
                    <tr>
                        <td>
                            <table cellpadding="0" width="100%" cellspacing="0">
                                <tr>
                                    <td colspan="2">
                                        <h3>
                                            Driver Details</h3>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Title
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtTitle" MaxLength="50" Width="200" runat="server"></asp:TextBox><br />
                                        <asp:RequiredFieldValidator ID="rfvTitle" Display="Dynamic" runat="server" ControlToValidate="txtTitle"
                                            ErrorMessage="Title is required"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        First Name
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtFirstName" MaxLength="200" Width="200" runat="server"></asp:TextBox><br />
                                        <asp:RequiredFieldValidator ID="rfvFirstName" Display="Dynamic" runat="server" ControlToValidate="txtFirstName"
                                            ErrorMessage="First Name is required"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Last Name
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtLastName" MaxLength="200" Width="200" runat="server"></asp:TextBox><br />
                                        <asp:RequiredFieldValidator ID="rfvLastName" Display="Dynamic" runat="server" ControlToValidate="txtLastName"
                                            ErrorMessage="Last Name is required"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Email Address
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtEmailAddress" MaxLength="300" Width="200" runat="server"></asp:TextBox><br />
                                        <asp:RequiredFieldValidator ID="rfvEmailAddress" Display="Dynamic" runat="server"
                                            ControlToValidate="txtEmailAddress" ErrorMessage="Email Address is required"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revEmailAddress" runat="server" Display="Dynamic"
                                            ControlToValidate="txtEmailAddress" ErrorMessage="Invalid Email Address " ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Phone
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPhone" MaxLength="50" Width="200" runat="server"></asp:TextBox><br />
                                        <asp:RequiredFieldValidator ID="rfvPhone" Display="Dynamic" runat="server" ControlToValidate="txtPhone"
                                            ErrorMessage="Phone is required"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Mobile
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtMobile" MaxLength="50" Width="200" runat="server"></asp:TextBox><br />
                                        <asp:RequiredFieldValidator ID="rfvMobile" Display="Dynamic" runat="server" ControlToValidate="txtMobile"
                                            ErrorMessage="Mobile is required"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <table>
                                            <tr>
                                                <td width="25">
                                                    <asp:CheckBox AutoPostBack="true" ID="chkAddDriver" runat="server" OnCheckedChanged="chkAddDriver_CheckedChanged" />
                                                </td>
                                                <td>
                                                    <b>Additional Driver </b>
                                                </td>
                                            </tr>
                                        </table>
                                        <table cellpadding="0" visible="false" runat="server" id="tblAddDriver" width="100%"
                                            cellspacing="0">
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Title
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtAddTitle" MaxLength="50" Width="200" runat="server"></asp:TextBox><br />
                                                    <asp:RequiredFieldValidator ID="rfvAddTitle" Display="Dynamic" runat="server" ControlToValidate="txtAddTitle"
                                                        ErrorMessage="Title is required"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    First Name
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtAddFirstName" MaxLength="200" Width="200" runat="server"></asp:TextBox><br />
                                                    <asp:RequiredFieldValidator ID="rfvAddFirstName" Display="Dynamic" runat="server"
                                                        ControlToValidate="txtAddFirstName" ErrorMessage="First Name is required"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Last Name
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtAddLastName" MaxLength="200" Width="200" runat="server"></asp:TextBox><br />
                                                    <asp:RequiredFieldValidator ID="rfvAddLastName" Display="Dynamic" runat="server"
                                                        ControlToValidate="txtAddLastName" ErrorMessage="Last Name is required"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Email Address
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtAddEmailAddress" MaxLength="300" Width="200" runat="server"></asp:TextBox><br />
                                                    <asp:RequiredFieldValidator ID="rfvAddEmailAddress" Display="Dynamic" runat="server"
                                                        ControlToValidate="txtAddEmailAddress" ErrorMessage="Email Address is required"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="revAddEmailAddress" runat="server" Display="Dynamic"
                                                        ControlToValidate="txtAddEmailAddress" ErrorMessage="Invalid Email Address "
                                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Phone
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtAddPhone" MaxLength="50" Width="200" runat="server"></asp:TextBox><br />
                                                    <asp:RequiredFieldValidator ID="rfvAddPhone" Display="Dynamic" runat="server" ControlToValidate="txtAddPhone"
                                                        ErrorMessage="Phone is required"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Mobile
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtAddMobile" MaxLength="50" Width="200" runat="server"></asp:TextBox><br />
                                                    <asp:RequiredFieldValidator ID="rfvAddMobile" Display="Dynamic" runat="server" ControlToValidate="txtAddMobile"
                                                        ErrorMessage="Mobile is required"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table cellpadding="0" width="100%" cellspacing="0">
                                <tr>
                                    <td>
                                        <h3>
                                            How would you like to pay?</h3>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:DropDownList ID="ddlPaymentOptions" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPaymentOptions_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:ImageButton ID="btnPayNow" Enabled="false" OnClientClick="return onPayNowClick()"
                                runat="server" ImageUrl="/Images/PayNow.png" OnClick="btnPayNow_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
            <td style="vertical-align: top; border: solid 2px #3e7a21; padding-left: 10px;">
                <table width="100%">
                    <tr>
                        <td align="left" colspan="2">
                            <b>Journey Details:</b>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Image ID="imgVehicleImage" Width="143" Height="83" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Label ID="lblVehicleCatDesc" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <b>Booking duration:</b>
                            <asp:Label ID="lblBookingDuration" runat="server" Text=""></asp:Label>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <b>Pickup:</b>
                            <asp:Label ID="lblPickUpLocation" runat="server" Text=""></asp:Label><br />
                            <asp:Label ID="lblStartDayDate" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <b>Return:</b>
                            <asp:Label ID="lblReturnLocation" runat="server" Text=""></asp:Label><br />
                            <asp:Label ID="lblEndDayDate" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <hr style="border: solid 1px #3e7a21; width: 100%" />
                        </td>
                    </tr>
                    <tr>
                        <td align="left" colspan="2">
                            <b>Payable Cost Now:</b>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr id="trPayNowRentCost" runat="server">
                        <td class="bookingPriceLabel">
                            Rental Cost:
                        </td>
                        <td align="right">
                            £<asp:Label ID="lblRentalCost" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="bookingPriceLabel">
                            Booking fees:
                        </td>
                        <td align="right">
                            £<asp:Label ID="lblBookingFees" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr id="trCardCharges" runat="server">
                        <td class="bookingPriceLabel">
                            Card Charges:
                        </td>
                        <td align="right">
                            £<asp:Label ID="lblCardCharges" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr id="trInsuranceCost" runat="server">
                        <td class="bookingPriceLabel">
                            Insurance Cost:
                        </td>
                        <td align="right">
                            £<asp:Label ID="lblInsuranceCost" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr id="trNavigatorCost" runat="server">
                        <td class="bookingPriceLabel">
                            GPS Cost:
                        </td>
                        <td align="right">
                            £<asp:Label ID="lblNavigatorCost" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr id="trAddDriverCost" visible="false" runat="server">
                        <td class="bookingPriceLabel">
                            Additional Driver Cost:
                        </td>
                        <td align="right">
                            £<asp:Label ID="lblAdditionalDriverCost" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <hr style="border: solid 1px #3e7a21;" />
                        </td>
                    </tr>
                    <tr>
                        <td class="bookingPriceLabel">
                            Total Cost:
                        </td>
                        <td align="right">
                            £<asp:Label ID="lblTotalBookingCost" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr id="trPayOnArrivalHead" runat="server">
                        <td align="left" colspan="2">
                            <b>Payable On Arrival:</b>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr id="trPayOnArrivalRentCost" runat="server">
                        <td class="bookingPriceLabel">
                            Rental Cost:
                        </td>
                        <td align="right">
                            £<asp:Label ID="lblPayOnArrivalRentCost" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
